import React, { Component } from 'react';
import './thing.css'
export default class Things extends Component{
    constructor(data){
        super(data)
        
    }

    render(){
        console.log('Things被打印了');
        return (
            <div className="things-item">
                <input type='checkbox'/>
                <p>{this.props.name}</p>
                <div onClick={(e)=>{this.props.delThing(e,this.props.index)}} className='delete'>点击删除</div>
            </div>
        )
    }
}